<template>
  <div class="commonFooter">
    <div class="top">
      <div class="commonFooter_Top">
        <div class="commonFooter_Top_left">
          <div class="logo">
            <img src="../../static/images/bbi/logo1.png" />
          </div>
        </div>
        <div class="commonFooter_Top_right">
          <div class="qcode">
            <img src="../../static/images/bbi/qcode.jpg" />
          </div>
        </div>
      </div>
      <ul class="footer_ul">
        <li
          class="footer_li"
          v-for="(item, index) in list"
          :key="index"
          @click="changeNav(item)"
        >
          {{ item.name }}
        </li>
      </ul>
    </div>
    <div class="commonFooter_Bot">
      <div class="cont">
        <p>Tel: 13341315752</p>
        <p>京ICP备14038696</p>
        <p>Copyright@北京北航天汇科技孵化器有限公司</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      list: [
        {
          url: '/',
          name: '首页'
        },
        {
          url: '/digitaIncubation',
          name: '数字孵化'
        },
        {
          url: '/service',
          name: '汇创业',
          child: [
            { url: '/space', name: '空间' },
            { url: '/service', name: '服务' }
          ]
        },
        {
          url: '/huichuangcamp',
          name: '汇创营'
        },
        {
          url: '/huichuangtou',
          name: '汇创投'
        },
        {
          url: '/park',
          name: '园区'
        },
        {
          url: '/news',
          name: '资讯',
          child: [
            { url: '/news', name: '新闻' },
            { url: '/news', name: '政策' }
          ]
        },
        {
          url: '/aboutUs',
          name: '关于我们'
        }
      ]
    }
  },

  methods: {
    changeNav (item) {
      this.$router.push({
        // 核心语句
        path: item.url
      })
    }
  }
}
</script>
<style lang="scss" scoped>
.commonFooter {
  width: 100%;
  background: #555555;
  .top {
    width: 100%;
    background: #f6f6f6;
    padding: 50px 0 20px;
    box-sizing: border-box;
    .footer_ul {
      width: 900px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0 auto 0;
      .footer_li {
        font-size: 15px;
        font-family: Microsoft YaHei, Microsoft YaHei-Regular;
        font-weight: 400;
        color: #100f26;
        cursor: pointer;
      }
    }
  }
  .commonFooter_Top {
    width: 100%;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    .commonFooter_Top_left {
      margin-right: 80px;
      .logo {
        width: 136px;
        height: 136px;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
    .commonFooter_Top_right {
      .qcode {
        img {
          width: 127px;
          height: 126px;
        }
      }
    }
  }
  .commonFooter_Bot {
    width: 100%;
    height: 70px;
    background: #3a3a3a;
    opacity: 0.8;
    background: #13335b;
    .cont {
      width: 720px;
      margin: 0 auto;
      display: flex;
      height: 100%;
      justify-content: space-around;
      align-items: center;
    }
    p {
      font-size: 13px;
      font-family: Roboto, Roboto-Regular;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.87);
    }
  }
}
</style>
